#pragma once

#include "EdgeFilter.h"

/**
 * wrap opencv cvCanny function
 *
 */
class CannyEdgeFilter : public EdgeFilter {
public:
	/**
	 * apertureSize must be 1, 3, 5, or 7.
	 */
	CannyEdgeFilter(double threshold1, double threshold2, int apertureSize = 3);
	~CannyEdgeFilter(void);

public:
	IplImage* compute(const IplImage* im);

private:
	double threshold1;
	double threshold2;
	int    apertureSize;
};
